export default () => {
  // #ifdef H5
  // let url = window.location.href
  let debug = true;
  if (debug) {
    const script = document.createElement('script');
    script.src = 'https://cdn-1251575231.cos.ap-shanghai.myqcloud.com/eruda/2.5.0/eruda.js';
    document.body.appendChild(script);
    script.onload = function () {
      // @ts-ignore
      eruda.init();
    };
  }
  // #endif
};
